<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>${sysName}</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="${resRoot}/layui/css/layui.css" media="all" />
  <link rel="stylesheet" href="${resRoot}/layui/admin/admin.css" media="all" />
	<link id="layuicss-layer" rel="stylesheet" href="${resRoot}/layui/css/modules/layer/default/layer.css" media="all">
</head>
<body>
<div class="layui-fluid">   
          <div class="layui-card">
          <div class="layui-form layui-card-header layuiadmin-card-header-auto"> 
 
<form class="layui-form" action="#" style="margin-top: 20px;margin-bottom:50px;" lay-filter="dataForm"  >
<input type="hidden" id="id" name="id"  >
  <div class="layui-form-item">
    <label class="layui-form-label">姓名</label>
    <div class="layui-input-inline">
	      <input type="text" name="xm" id="xm" value=""  autocomplete="off" placeholder="请输入姓名" class="layui-input" lay-verify="required" lay-reqtext="请输入姓名" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入姓名</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">户籍类型</label>
    <div class="layui-input-inline">
	      <input type="text" name="hjlx" id="hjlx" value=""  autocomplete="off" placeholder="请输入户籍类型" class="layui-input" lay-verify="required" lay-reqtext="请输入户籍类型" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入户籍类型</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">性别</label>
    <div class="layui-input-inline">
	      <input type="text" name="xb" id="xb" value=""  autocomplete="off" placeholder="请输入性别" class="layui-input" lay-verify="required" lay-reqtext="请输入性别" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入性别</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">出生日期</label>
    <div class="layui-input-inline">
	      <input type="text" name="csrq" id="csrq" value=""  autocomplete="off" placeholder="请输入出生日期" class="layui-input" lay-verify="required" lay-reqtext="请输入出生日期" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入出生日期</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">身份证号</label>
    <div class="layui-input-inline">
	      <input type="text" name="sfzh" id="sfzh" value=""  autocomplete="off" placeholder="请输入身份证号" class="layui-input" lay-verify="required" lay-reqtext="请输入身份证号" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入身份证号</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">残疾证号</label>
    <div class="layui-input-inline">
	      <input type="text" name="cjzh" id="cjzh" value=""  autocomplete="off" placeholder="请输入残疾证号" class="layui-input" lay-verify="required" lay-reqtext="请输入残疾证号" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入残疾证号</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">军残证号</label>
    <div class="layui-input-inline">
	      <input type="text" name="jzzh" id="jzzh" value=""  autocomplete="off" placeholder="请输入军残证号" class="layui-input" lay-verify="required" lay-reqtext="请输入军残证号" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入军残证号</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">社保电脑号</label>
    <div class="layui-input-inline">
	      <input type="text" name="sbdnh" id="sbdnh" value=""  autocomplete="off" placeholder="请输入社保电脑号" class="layui-input" lay-verify="required" lay-reqtext="请输入社保电脑号" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入社保电脑号</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">籍贯</label>
    <div class="layui-input-inline">
	      <input type="text" name="jg" id="jg" value=""  autocomplete="off" placeholder="请输入籍贯" class="layui-input" lay-verify="required" lay-reqtext="请输入籍贯" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入籍贯</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">民族</label>
    <div class="layui-input-inline">
	      <input type="text" name="mz" id="mz" value=""  autocomplete="off" placeholder="请输入民族" class="layui-input" lay-verify="required" lay-reqtext="请输入民族" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入民族</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">残疾类别</label>
    <div class="layui-input-inline">
	      <input type="text" name="cjlb" id="cjlb" value=""  autocomplete="off" placeholder="请输入残疾类别" class="layui-input" lay-verify="required" lay-reqtext="请输入残疾类别" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入残疾类别</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">残疾等级</label>
    <div class="layui-input-inline">
	      <input type="text" name="cjdj" id="cjdj" value=""  autocomplete="off" placeholder="请输入残疾等级" class="layui-input" lay-verify="required" lay-reqtext="请输入残疾等级" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入残疾等级</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">婚姻状况</label>
    <div class="layui-input-inline">
	      <input type="text" name="hyzk" id="hyzk" value=""  autocomplete="off" placeholder="请输入婚姻状况" class="layui-input" lay-verify="required" lay-reqtext="请输入婚姻状况" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入婚姻状况</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">文化程度</label>
    <div class="layui-input-inline">
	      <input type="text" name="whcd" id="whcd" value=""  autocomplete="off" placeholder="请输入文化程度" class="layui-input" lay-verify="required" lay-reqtext="请输入文化程度" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入文化程度</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">职称等级</label>
    <div class="layui-input-inline">
	      <input type="text" name="zcdj" id="zcdj" value=""  autocomplete="off" placeholder="请输入职称等级" class="layui-input" lay-verify="required" lay-reqtext="请输入职称等级" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入职称等级</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">联系电话</label>
    <div class="layui-input-inline">
	      <input type="text" name="lxdh" id="lxdh" value=""  autocomplete="off" placeholder="请输入联系电话" class="layui-input" lay-verify="required" lay-reqtext="请输入联系电话" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入联系电话</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">爱好特长</label>
    <div class="layui-input-inline">
	      <input type="text" name="ahtc" id="ahtc" value=""  autocomplete="off" placeholder="请输入爱好特长" class="layui-input" lay-verify="required" lay-reqtext="请输入爱好特长" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入爱好特长</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">户口地址</label>
    <div class="layui-input-inline">
	      <input type="text" name="hkdz" id="hkdz" value=""  autocomplete="off" placeholder="请输入户口地址" class="layui-input" lay-verify="required" lay-reqtext="请输入户口地址" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入户口地址</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">家庭住址</label>
    <div class="layui-input-inline">
	      <input type="text" name="jtzz" id="jtzz" value=""  autocomplete="off" placeholder="请输入家庭住址" class="layui-input" lay-verify="required" lay-reqtext="请输入家庭住址" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入家庭住址</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">工作单位</label>
    <div class="layui-input-inline">
	      <input type="text" name="gzdw" id="gzdw" value=""  autocomplete="off" placeholder="请输入工作单位" class="layui-input" lay-verify="required" lay-reqtext="请输入工作单位" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入工作单位</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">单位地址</label>
    <div class="layui-input-inline">
	      <input type="text" name="dwdz" id="dwdz" value=""  autocomplete="off" placeholder="请输入单位地址" class="layui-input" lay-verify="required" lay-reqtext="请输入单位地址" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入单位地址</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">岗位名称</label>
    <div class="layui-input-inline">
	      <input type="text" name="gwmc" id="gwmc" value=""  autocomplete="off" placeholder="请输入岗位名称" class="layui-input" lay-verify="required" lay-reqtext="请输入岗位名称" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入岗位名称</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">本单位就业起始时间</label>
    <div class="layui-input-inline">
	      <input type="text" name="bdwjyqssj" id="bdwjyqssj" value=""  autocomplete="off" placeholder="请输入本单位就业起始时间" class="layui-input" lay-verify="required" lay-reqtext="请输入本单位就业起始时间" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入本单位就业起始时间</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">在岗情况</label>
    <div class="layui-input-inline">
	      <input type="text" name="zgqk" id="zgqk" value=""  autocomplete="off" placeholder="请输入在岗情况" class="layui-input" lay-verify="required" lay-reqtext="请输入在岗情况" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入在岗情况</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">月收入</label>
    <div class="layui-input-inline">
	      <input type="text" name="ysr" id="ysr" value=""  autocomplete="off" placeholder="请输入月收入" class="layui-input" lay-verify="required" lay-reqtext="请输入月收入" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入月收入</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">就业月份</label>
    <div class="layui-input-inline">
	      <input type="text" name="jyyf" id="jyyf" value=""  autocomplete="off" placeholder="请输入就业月份" class="layui-input" lay-verify="required" lay-reqtext="请输入就业月份" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入就业月份</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">发证时间</label>
    <div class="layui-input-inline">
	      <input type="text" name="fzsj" id="fzsj" value=""  autocomplete="off" placeholder="请输入发证时间" class="layui-input" lay-verify="required" lay-reqtext="请输入发证时间" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入发证时间</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">军残等级</label>
    <div class="layui-input-inline">
	      <input type="text" name="jcdj" id="jcdj" value=""  autocomplete="off" placeholder="请输入军残等级" class="layui-input" lay-verify="required" lay-reqtext="请输入军残等级" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入军残等级</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">办事人员和有关人员</label>
    <div class="layui-input-inline">
	      <input type="text" name="gwmc1" id="gwmc1" value=""  autocomplete="off" placeholder="请输入办事人员和有关人员" class="layui-input" lay-verify="required" lay-reqtext="请输入办事人员和有关人员" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入办事人员和有关人员</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">行政办公人员</label>
    <div class="layui-input-inline">
	      <input type="text" name="gwmc2" id="gwmc2" value=""  autocomplete="off" placeholder="请输入行政办公人员" class="layui-input" lay-verify="required" lay-reqtext="请输入行政办公人员" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入行政办公人员</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">行政事务人员</label>
    <div class="layui-input-inline">
	      <input type="text" name="gwmc3" id="gwmc3" value=""  autocomplete="off" placeholder="请输入行政事务人员" class="layui-input" lay-verify="required" lay-reqtext="请输入行政事务人员" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入行政事务人员</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">状态</label>
    <div class="layui-input-inline">
	      <input type="text" name="zt" id="zt" value=""  autocomplete="off" placeholder="请输入状态" class="layui-input" lay-verify="required" lay-reqtext="请输入状态" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入状态</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">岗位名称2</label>
    <div class="layui-input-inline">
	      <input type="text" name="d2gwmc" id="d2gwmc" value=""  autocomplete="off" placeholder="请输入岗位名称2" class="layui-input" lay-verify="required" lay-reqtext="请输入岗位名称2" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入岗位名称2</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">紧急联系人电话</label>
    <div class="layui-input-inline">
	      <input type="text" name="jjlxrdh" id="jjlxrdh" value=""  autocomplete="off" placeholder="请输入紧急联系人电话" class="layui-input" lay-verify="required" lay-reqtext="请输入紧急联系人电话" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入紧急联系人电话</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">岗位名称3</label>
    <div class="layui-input-inline">
	      <input type="text" name="d3gwmc" id="d3gwmc" value=""  autocomplete="off" placeholder="请输入岗位名称3" class="layui-input" lay-verify="required" lay-reqtext="请输入岗位名称3" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入岗位名称3</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">紧急联系人姓名</label>
    <div class="layui-input-inline">
	      <input type="text" name="jjlxrxm" id="jjlxrxm" value=""  autocomplete="off" placeholder="请输入紧急联系人姓名" class="layui-input" lay-verify="required" lay-reqtext="请输入紧急联系人姓名" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入紧急联系人姓名</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">a14445</label>
    <div class="layui-input-inline">
	      <input type="text" name="dynWidgetName" id="dynWidgetName" value=""  autocomplete="off" placeholder="请输入a14445" class="layui-input" lay-verify="required" lay-reqtext="请输入a14445" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入a14445</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">是否军残</label>
    <div class="layui-input-inline">
	      <input type="text" name="sfjc" id="sfjc" value=""  autocomplete="off" placeholder="请输入是否军残" class="layui-input" lay-verify="required" lay-reqtext="请输入是否军残" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入是否军残</div>
  </div>


  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" id=""  lay-submit="" lay-filter="dataSaveSubmit"  type="button">立即提交</button>
      <button type="button" class="layui-btn layui-btn-primary" onclick="backList();" >返回</button>
    </div>
  </div>
</form>
</div>
  </div>
  </div>
<#include "/page/footer.html">
<script>
var id = "${id!}";
$(function(){


$(function(){
	var dataTmp = getDataById(id, "${base}/sys/szclZzcjr/get/" + id)
})
});
function backList() {
	parent.layer.closeAll("iframe");
    //刷新父页面
    parent.location.reload();
}

function removeImg(id) {
	layer.confirm('您是确认删除/查看该图片吗？', {
		  btn: ['确认','查看'] //按钮
		}, function(){
			$("#" + id).attr("src", "");
			layer.msg('已删除！');
		}, function(){
			window.open($("#" + id).attr("src"));
		  //layer.msg('已取消！');
		});
}
layui.use(['form', 'layedit', 'laydate', 'upload'], function(){
  var form = layui.form
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  
  
  var upload = layui.upload;
  
  // 页面验证，及自定义验证规则 样例 表单验证参考  https://www.layui.com/demo/form.html
  form.verify({
    title: function(value){
      if(value.length == 0){
        return '参数不能为空';
      }
    }
    ,pass: [/(.+){6,12}$/, '密码必须6到12位']
    ,content: function(value){
      layedit.sync(editIndex);
    }
  });
  
  
  form.on('submit(dataSaveSubmit)', function(data){
      var index = layer.msg('加载中...',{icon: 16,time:false,shade:0.8});
      delete data.field.file;
      $.ajax({
			url : "${base}/sys/szclZzcjr/save",
			contentType : "application/json",
         	dataType : 'json',
			data : JSON.stringify(data.field),
          	type:'post',
			async : true,
			success : function(data) {
				layer.close(index);
				console.log(data)
				if(data.code == 1) {
						layer.msg('保存成功！', {
						  icon: 1,
						  time: 2000 //2秒关闭（如果不配置，默认是3秒）
						}, function(){
							backList();
						});   
					} else {
						layer.msg(data.msg); 
					}
			}
		}); 
    });
  
});

layui.use('upload', function(){
	  
});  
</script>
</body>
</html>